package com.sanjiahantang.youjiaclient.module.decorate.views;

import android.support.v7.widget.RecyclerView;


import com.sanjiahantang.uilibrary.adapter.listview.QuickAdapter;
import com.sanjiahantang.youjiaclient.base.BaseView;
import com.sanjiahantang.youjiaclient.module.decorate.beans.DecorateDicBean;
import com.sanjiahantang.youjiaclient.module.decorate.beans.DecorateManageBean;
import com.sanjiahantang.youjiaclient.module.decorate.presenters.DecorateManagePresenter;

import net.lucode.hackware.magicindicator.buildins.commonnavigator.abs.CommonNavigatorAdapter;

/**
 * Created by zy on 2017/9/14.
 */

public interface DecorateManageView extends BaseView {
    String FRAGMENT_PRE = "fragment_";
    int STATE_ON = 1;
    int STATE_OFF = 0;
    int STATE_DONE = 2;

    int INTENT_JOB = 1;
    int INTENT_DOOR = 2;
    int INTENT_STYLE = 3;
    int INTENT_PRICE = 4;
    int INTENT_Love = 5;

    String KEY_DECORATE_NAME = "userName";
    String KEY_DECORATE_GENDER = "sex";
    String KEY_DECORATE_JOB_VALUE = "jobCode";
    String KEY_DECORATE_JOB_NAME = "jobName";
    String KEY_DECORATE_CITY = "address";
    String KEY_DECORATE_ADDRESS = "apartmentName";
    String KEY_DECORATE_BABY = "isHaveBaby";
    String KEY_DECORATE_OLD = "hasTogether";
    String KEY_DECORATE_DOOR_VALUE = "apartmentTypeCode";
    String KEY_DECORATE_DOOR_NAME = "apartmentTypeName";
    String KEY_DECORATE_STYLE_VALUE = "likeStyleCode";
    String KEY_DECORATE_STYLE_NAME = "likeStyleName";
    String KEY_DECORATE_AREA = "apartmentArea";
    String KEY_DECORATE_PRICE_VALUE = "budgetCode";
    String KEY_DECORATE_PRICE_NAME = "budgetName";
    String KEY_DECORATE_PRE_TIME = "planDecorateTime";

    String KEY_designStateId = "designStateId";
    String KEY_projectStateId = "projectStateId";
    String KEY_supervisionStateId = "supervisionStateId";
    String KEY_totalStateId = "totalStateId";
    String KEY_EXPERIENCENAME = "experienceName";
    String KEY_EXPERIENCEPHONE = "experiencePhone";
    String KEY_FROM = "from";

    DecorateManagePresenter getPresenter();

    interface BindTabListener {
        void bindAdapter(CommonNavigatorAdapter adapter);

        void switchPages(int index);

        void reload(int piId);

        void changeFragment(DecorateManageBean.Data data);
    }

    interface BindPageListener {
        void initParticipantAdapter(QuickAdapter participantAdapter);

        void setCount(int count);

        void initFlowAdapter(RecyclerView.Adapter<RecyclerView.ViewHolder> flowAdapter);
    }

    interface OnLoadListener {
        void loadData(DecorateDicBean.Data data);
    }

    int KEY_DECORATE = 8;
}
